package com.findFish.cage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.findFish.cage.mapper.CageMaintenanceMapper;
import com.findFish.cage.domain.CageMaintenance;
import com.findFish.cage.service.ICageMaintenanceService;

/**
 * 网箱维护记录Service业务层处理
 * 
 * @author admin
 * @date 2025-03-31
 */
@Service
public class CageMaintenanceServiceImpl implements ICageMaintenanceService 
{
    @Autowired
    private CageMaintenanceMapper cageMaintenanceMapper;

    /**
     * 查询网箱维护记录
     * 
     * @param id 网箱维护记录主键
     * @return 网箱维护记录
     */
    @Override
    public CageMaintenance selectCageMaintenanceById(String id)
    {
        return cageMaintenanceMapper.selectCageMaintenanceById(id);
    }

    /**
     * 查询网箱维护记录列表
     * 
     * @param cageMaintenance 网箱维护记录
     * @return 网箱维护记录
     */
    @Override
    public List<CageMaintenance> selectCageMaintenanceList(CageMaintenance cageMaintenance)
    {
        return cageMaintenanceMapper.selectCageMaintenanceList(cageMaintenance);
    }

    /**
     * 新增网箱维护记录
     * 
     * @param cageMaintenance 网箱维护记录
     * @return 结果
     */
    @Override
    public int insertCageMaintenance(CageMaintenance cageMaintenance)
    {
        return cageMaintenanceMapper.insertCageMaintenance(cageMaintenance);
    }

    /**
     * 修改网箱维护记录
     * 
     * @param cageMaintenance 网箱维护记录
     * @return 结果
     */
    @Override
    public int updateCageMaintenance(CageMaintenance cageMaintenance)
    {
        return cageMaintenanceMapper.updateCageMaintenance(cageMaintenance);
    }

    /**
     * 批量删除网箱维护记录
     * 
     * @param ids 需要删除的网箱维护记录主键
     * @return 结果
     */
    @Override
    public int deleteCageMaintenanceByIds(String[] ids)
    {
        return cageMaintenanceMapper.deleteCageMaintenanceByIds(ids);
    }

    /**
     * 删除网箱维护记录信息
     * 
     * @param id 网箱维护记录主键
     * @return 结果
     */
    @Override
    public int deleteCageMaintenanceById(String id)
    {
        return cageMaintenanceMapper.deleteCageMaintenanceById(id);
    }
}
